package com.uwo.commons.datasource.configuration;

import io.shardingjdbc.core.keygen.KeyGenerator;

/**
 * 通过时间戳生成ID
 * @author hao.yan
 */
public class TimeKeyGenerator implements KeyGenerator {

    @Override
    public synchronized Number generateKey() {
        return System.currentTimeMillis();
    }
}
